package info.zlong.visibleruntime.core.model;

import com.alibaba.fastjson.JSON;

public class LogMsg {
	public static final int START = 0;
	public static final int END = 1;
	
	private String id;
	private String path;
	private String msg;
	private long time;
	private int type;
	
	public String toJson(String id,String path,String msg,int type){
		this.id = id;
		this.path = path;
		this.msg = msg;
		this.type = type;
		this.time = System.currentTimeMillis();
		return JSON.toJSONString(this);
	}

	public String getId() {
		return id;
	}

	public String getPath() {
		return path;
	}

	public String getMsg() {
		return msg;
	}

	public long getTime() {
		return time;
	}

	public int getType() {
		return type;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public void setType(int type) {
		this.type = type;
	}
	
}